package secondPart.inheritance;

public class Animal {
    public int age = 10;
    public String name;

    public Animal() {
        age = 20;
        System.out.println("Animal类执行了");
    }

    public void eat() {
        System.out.println("动物具有吃东西的能力！");
    }
}
